package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.ReMenBean;
import com.asion.qkan.ui.contract.SheQuReMenContract;

/**
 * Created by asion on 16-10-12.
 */

public class SheQuReMenPresenter extends SheQuReMenContract.Presenter {

    @Override
    public void onStart() {
        super.onStart();
    }


    @Override
    public void setSheQuReMenDatas(int type) {
        mModel.getSheQuReMenListDatas(type, new SheQuReMenContract.OnSheQuReMenGetListener() {
            @Override
            public void onSheQuSuccess(ReMenBean.DataBean bean) {
                mView.showDataSuccess(bean);
            }

            @Override
            public void onSheQuError(Throwable t) {
                mView.showDataError(t);
            }
        });
    }
}
